package src.messagesToServer;

import src.dataStructures.Data;
import src.messagesToClient.MessageToClient;
import src.serverSide.Control;

/**
 * This class is a command to the server to set the contents of the stored data object to match the given
 * @author John Stewart
 */
public class SetData extends MessageToServer {
	private Data data;
	
	public SetData(Data newdata) {
		data = newdata;
	}

	@Override
	public MessageToClient execute(String address, Control control) {
		return control.setData(address, data);
	}

}
